﻿<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>@ViewBag.Title</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">
    @*<link href='http://fonts.googleapis.com/css?family=Nova+Square' rel='stylesheet' type='text/css'>*@
    <!-- Server codes -->
    @using NotesVaultOnline.Class.Helper;
    @using System.Configuration;
    @using System.Web.Configuration;
    @{
        //Upload size in bytes
        var requestSize = (ConfigurationManager.GetSection("system.web/httpRuntime") as HttpRuntimeSection).MaxRequestLength * 1000;
    }

    <!-- Styles -->
    @Styles.Render("~/Content/bootstrap")
    @Styles.Render("~/Content/jquery-plugins")
    @Styles.Render("~/Content/main")

    <!-- jQuery -->
    @Scripts.Render("~/Scripts/jquery")

    <!-- Server variables -->
    <script>
        var maxRequestSize = @requestSize;
    </script>
</head>
<body>
    <!--[if lt IE 7]>
            <p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p>
        <![endif]-->
    @Html.Partial("_ControlPanel")
    @(User.Identity.IsAuthenticated ? Html.Partial("_LeftBar") : Html.Partial("_Empty"))

    <div style="margin-top: 32px">
        <div class="container">
            @RenderBody()
        </div>
    </div>

    <div id="scripts">
        <!-- jQuery plugins -->
        @Scripts.Render("~/Scripts/jquery-plugins", "~/Scripts/jquery-val")

        <!-- Bootstrap -->
        @Scripts.Render("~/Scripts/bootstrap")

        <!-- Page custom JS -->
        @Scripts.Render("~/Scripts/novo-main")
        @Html.RenderCustomScript(ViewContext.RouteData.Values["controller"].ToString() + ".js", NovoHtmlHelper.ScriptType.Pages)

        <!-- Google Analytic -->
        <script>
            var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
            (function (d, t) {
                var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
                g.src = ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js';
                s.parentNode.insertBefore(g, s)
            }(document, 'script'));
        </script>
    </div>
</body>
</html>
